
#pragma once
#pragma warning(disable: 4505)

static StringHash GetStringHash ( const char* szString )
{
	StringHash uHash = 0;
	const unsigned char* szUnsignString = reinterpret_cast<const unsigned char*>( szString );

	while( *szUnsignString )
	{
		// SDBM hash function
		uHash = *szUnsignString++ + ( uHash << 6 ) + ( uHash << 16 ) - uHash;
	}
	
	return uHash;
}

//eof
